Skip to content

Add integration test for pytorch-setup example#53

Open
Copilot wants to merge 4 commits into
masterfrom
copilot/add-pytorch-example-integration-test
Open

Add integration test for pytorch-setup example#53
Copilot wants to merge 4 commits into
masterfrom
copilot/add-pytorch-example-integration-test

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 12, 2026

The examples/pytorch-setup project was not covered by any CI integration test, leaving it untested end-to-end.

Changes

  • New test test_submit_pytorch_setup_example in tests/test_integration.py: submits examples/pytorch-setup/scripts/job.sh via cluv submit, polls for Slurm completion, syncs results, and asserts "PyTorch built with CUDA:" appears in the output log.
    • chdirs into examples/pytorch-setup before submitting so find_pyproject() / get_config() resolve against the example's own pyproject.toml (including its results_path = "logs" and per-cluster env vars).
    • Clears the get_config cache both before (to pick up the example config) and in finally (to avoid polluting subsequent tests).
    • Uses a 300 s test timeout (vs 180 s for test_submit) to account for GPU scheduling latency; otherwise follows the same structure as test_submit.
  • Import: adds get_config to the existing from cluv.config import ... line.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • releases.astral.sh
    • Triggering command: /home/REDACTED/.local/bin/uv uv run pytest -m not integration -x --no-header -q (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Add integration test for PyTorch example in GitHub CI Add integration test for pytorch-setup example May 12, 2026
Copilot AI requested a review from lebrice May 12, 2026 17:34
@lebrice
Copy link
Copy Markdown
Contributor

lebrice commented May 14, 2026

@copilot Fix the conflicts and rebase on Master.

@lebrice lebrice marked this pull request as ready for review May 14, 2026 21:27
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 14, 2026

@copilot Fix the conflicts and rebase on Master.

Done — incorporated all master changes into the branch and resolved the from cluv.config import conflict (commit 75d5bcf). All 69 non-integration tests pass.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • releases.astral.sh
    • Triggering command: /home/REDACTED/.local/bin/uv uv run pytest -m not integration -x --no-header -q (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from lebrice May 14, 2026 21:33
@lebrice
Copy link
Copy Markdown
Contributor

lebrice commented May 26, 2026

@copilot Resolve the conflicts and rebase on master

Agent-Logs-Url: https://github.com/mila-iqia/cluv/sessions/b5d58953-7acc-419c-9d8c-cab1018aede4

Co-authored-by: lebrice <13387299+lebrice@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 26, 2026

@copilot Resolve the conflicts and rebase on master

Done — incorporated changes from master commit 67b80f7 (#75) into the branch (commit 2a3e49a). All 67 non-integration tests pass.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • releases.astral.sh
    • Triggering command: /home/REDACTED/.local/bin/uv uv run pytest -m not integration -x --no-header -q (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The PyTorch example is not tested in the GitHub CI

2 participants